package com.wms.system.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wms.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@TableName("sys_route_search_config")
@ApiModel(value = "SysRouteSearchConfig", description = "前台路由搜索条件用户个性化配置实体")
public class SysRouteSearchConfig {

    @Excel(name = "前台路由用户个性化配置id", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.NUMERIC, prompt = "前台路由用户个性化配置id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "用户id", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.STRING, prompt = "用户id")
    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @Excel(name = "路由", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.STRING, prompt = "路由")
    @ApiModelProperty("路由")
    @TableField("url")
    @NotBlank(message = "路由不能为空")
    private String url;

    @Excel(name = "前台个性化配置", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.STRING, prompt = "前台个性化配置")
    @ApiModelProperty("前台个性化配置")
    @TableField("individuation")
    @NotBlank(message = "前台个性化配置不能为空")
    private String individuation;

}
